<?php
	class the_model_sql extends the_model_args {
		function eat_orderby($key,$value) {
			$o = array();
			$value = explode(",",$value);
			$o['field'] = $value[0];
			$o['direc'] = $value[1];
			$o['sql'] = "ORDER BY ".$o['field']." ".$o['direc'];
			$o['use_meta'] = !in_array($o['field'], $this->model_object_fields);
			$o['meta'] = ($o['use_meta']) ? $o['field'] : "";
			return $o;
		}
	}
?>
